<?xml version="1.0" encoding="utf-8"?>
<Content type="xform" name="EditContent">
	<model>
		<instance>
			<tblDirectory>
				<nDirKey/>
				<cDirName/>
				<cDirPassword/>
				<cDirForiegnRef/>
				<cDirSchema>User</cDirSchema>
				<cDirXml>
					<User>
            <FirstName label="First name"/>
            <MiddleName label="Middle name"/>
            <LastName label="Surname"/>
						<Position/>
						<Email/>
						<Notes/>
					</User>
				</cDirXml>
				<nAuditId/>
				<nAuditKey/>
				<dPublishDate/>
				<dExpireDate/>
				<dInsertDate/>
				<nInsertDirId/>
				<dUpdateDate/>
				<nUpdateDirId/>
				<nStatus>1</nStatus>
				<cDescription/>
			</tblDirectory>
		</instance>
		<submission id="EditContent" action="" method="post" event="return form_check(this)"/>
		<bind id="cDirName" nodeset="tblDirectory/cDirName" required="true()" type="string"/>
		<bind id="cDirPassword" nodeset="tblDirectory/cDirPassword" required="true()" type="string"/>
		<bind nodeset="tblDirectory/cDirXml/User">
			<bind id="cFirstName" nodeset="FirstName" required="true()" type="string"/>
			<bind id="cMiddleName" nodeset="MiddleName" required="false()" type="string"/>
			<bind id="cLastName" nodeset="LastName" required="true()" type="string"/>
			<bind id="cPosition" nodeset="Position" required="false()" type="string"/>
			<bind id="cEmail" nodeset="Email" required="true()" type="email"/>
			<bind id="cNotes" nodeset="Notes" required="false()" type="string"/>
		</bind>
		<bind id="dPublishDate" nodeset="tblDirectory/dPublishDate" required="false()" type="string"/>
		<bind id="dExpireDate" nodeset="tblDirectory/dExpireDate" required="false()" type="string"/>
		<bind id="nStatus" nodeset="tblDirectory/nStatus" required="true()" type="string"/>
		<bind id="cDescription" nodeset="tblDirectory/cDescription" required="false()" type="string"/>
		<!--bind id="cContentRecRead" nodeset="tblContent/cContentXmlDetail/Content/group/div[@class='recRead']" required="false()" type="string"/-->
	</model>
	<group ref="EditContent" class="2Col">
		<label>Edit User</label>
				<group>
			<group>
				<label>Settings</label>
		<select1 bind="nStatus" appearance="full" class="required">
			<label>Status</label>
			<item>
				<label>Active</label>
				<value>1</value>
			</item>
			<item>
				<label>In-Active</label>
				<value>0</value>
			</item>
		</select1>
		<input bind="dPublishDate" class="calendar">
			<label>Enable Date</label>
		</input>
		<input bind="dExpireDate" class="calendar">
			<label>Expire Date</label>
		</input>
		<input bind="cDescription">
			<label>Change Notes</label>
		</input>
	</group>
	</group>
		<group>
			<group class="inline">
				<label>Account Details</label>
				<input bind="nDirKey" class="hidden">
					<label>DirId</label>
				</input>
				<input bind="cDirName" class="required">
					<label>UserName</label>
				</input>
				<input bind="cDirPassword" class="required">
					<label>Password</label>
				</input>
				<input bind="cEmail" class="required">
					<label>Email Address</label>
				</input>
				<input bind="cFirstName" class="required">
					<label>First Name</label>
				</input>
				<input bind="cMiddleName">
					<label>Middle Name</label>
				</input>
				<input bind="cLastName" class="required">
					<label>Last Name</label>
				</input>
				<input bind="cPosition">
					<label>Position</label>
				</input>
        <input bind="xml">
          <label>xml</label>
        </input>
			</group>
			<group>
				<label>Profile</label>
				<textarea bind="cNotes" class="TextAreaBrief xhtml" rows="5" cols="75">
					<label>Profile</label>
				</textarea>
			</group>
		</group>
	</group>
	<group>
		<submit submission="" ref="ewSubmit" class="principle">
			<label>Save User</label>
		</submit>
	</group>
</Content>
